Hệ thống xếp lịch học tín chỉ cho sinh viên CNTT trên PHP & MySQL
112.125 lượt xem;
1 <?php
2 error_reporting(E_ERROR | E_WARNING | E_PARSE);
3 $host = $_SERVER['HTTP_HOST'];
4 $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
5 $http = (strtolower($_SERVER['HTTPS']) == 'on' ? 'https:' : 'http:');
6 $extra = 'pageHome.php';
7 header("Location: $http//$host$uri/$extra");
8 exit;
9 ?>
2 error_reporting(E_ERROR | E_WARNING | E_PARSE);
3 $host = $_SERVER['HTTP_HOST'];
4 $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
5 $http = (strtolower($_SERVER['HTTPS']) == 'on' ? 'https:' : 'http:');
6 $extra = 'pageHome.php';
7 header("Location: $http//$host$uri/$extra");
8 exit;
9 ?>